package com.xzx.service;

import com.xzx.bean.UserAddress;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/9/1 11:19
 */
@Service
public class OrderService {

    @DubboReference
    private UserService userService;

    public List<UserAddress> initOrder(String userId) {
        // 1.查询用户的收货地址
        return userService.getUserAddressList(userId);
    }
}
